import Mock from 'mockjs'

const data = Mock.mock({
    'data|30': [{
        'text': '@province',
        'children|30':[{
            'text':'@city',
            'id|+1':1
        }]
    }]
})

Mock.mock('/getcity', 'get', () => {
    data.code = '200'
    return data
})